import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class test {
    static int N = 4;
    static char[][] arr = new char[N][N];
    static List<Point> points = new ArrayList<>();
    static int n=0;
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        for (int i = 0; i < 4; i++) arr[i] = s.nextLine().toCharArray();

        for(int i=0;i<4;i++)
           for(int j=0;j<4;j++)
               judge(i,j);
        System.out.println(n);
        for(Point p:points) {
            System.out.println(p.x+" "+p.y);
        }

    }

    private static void judge(int x,int y) {
        int count=0;
        for(int i=0;i<4;i++) {
            if(arr[x][i] == '+' || arr[i][y]=='+')count++;
        }
        if(arr[x][y]=='+') count--;
        if((count&1)==1) {
            n++;
            setLocation(x,y);
        }
    }
    private static void setLocation(int x,int y) {
        points.add(new Point(x+1, y+1));

    }
}
class Point {
    int x;
    int y;

    public Point(int x, int y) {
        this.x = x;
        this.y = y;
    }
}


